package cn.jieruoda.eb.system.domain.entity;

import java.io.Serializable;
import java.util.Date;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

import lombok.Data;

/**
 * 城市表
 */
@Data
@Entity
@Table(name = "system_city")
public class SystemCity implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 城市ID
     */
    @Id
    private Integer id;
    
    /**
     * 城市id
     */
    @Column(name = "city_id", nullable = false)
    private Integer cityId;
    
    /**
     * 省市级别
     */
    @Column(name = "level", nullable = false)
    private Integer level;
    
    /**
     * 父级id
     */
    @Column(name = "parent_id", nullable = false)
    private Integer parentId;
    
    /**
     * 区号
     */
    @Column(name = "area_code", nullable = false, length = 30)
    private String areaCode;
    
    /**
     * 名称
     */
    @Column(name = "name", nullable = false, length = 100)
    private String name;
    
    /**
     * 合并名称
     */
    @Column(name = "merger_name", nullable = false, length = 255)
    private String mergerName;
    
    /**
     * 经度
     */
    @Column(name = "lng", nullable = false, length = 50)
    private String lng;
    
    /**
     * 纬度
     */
    @Column(name = "lat", nullable = false, length = 50)
    private String lat;
    
    /**
     * 是否展示
     */
    @Column(name = "is_show", nullable = false)
    private Integer isShow;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time", nullable = false)
    private Date createTime;
    
    /**
     * 更新时间
     */
    @Column(name = "update_time", nullable = false)
    private Date updateTime;
} 